import request from '../req'
// 签单客户列表
export const getDealList = async (params: any) => {
    let res = await request.get('/crm/deal/list', {
        params: params
    })
    return res
}
// 所属分组列表
export const getDeptList = async (params: any) => {
    let res = await request.get('/system/dept/list', {
        params: params,
        noLoading: true
    })
    return res
}
// 所属分组列表
export const getSalesmanList = async (params: any) => {
    let res = await request.get('/crm/sales/querySales', {
        params: params,
        noLoading: true
    })
    return res
}
// 所属分组列表
export const getProductList = async (dictType: any) => {
    let res = await request.get(`/system/dict/data/type/${dictType}`)
    return res
}
// 所属分组列表
export const getDealInfo = async (params: any) => {
    let res = await request.get('/crm/deal/query-deal-info', {
        params: params
    })
    return res
}
// 子弹发薪数据汇总
export const getSassPayCount = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-count', {
        params: params
    })
    return res
}
// 子弹发薪统计数据
export const getSassEmployeesUnpaid = async (params: any) => {
    let res = await request.get('/crm/record/get-employees-unpaid', {
        params: params
    })
    return res
}
// 获取销售记录
export const getSassGetPaySalesRecord = async (params: any) => {
    let res = await request.get('/crm/record/get-pay-sales-record', {
        params: params
    })
    return res
}
// 获取联系人列表
export const getSassContactList = async (params: any) => {
    let res = await request.get('/crm/contact/list', {
        params: params
    })
    return res
}
// 获取保司列表
export const getInsuranceCompanyList = async (params: any) => {
    let res = await request.get('/crm/record/get-company-insurance-company', {
        params: params
    })
    return res
}
// 获取投保方式列表
export const getInsuranceTypeList = async (params: any) => {
    let res = await request.get('/crm/record/get-period-insurance-method', {
        params: params
    })
    return res
}
// 获取方案列表
export const getInsurancePlanList = async (params: any) => {
    let res = await request.get('/crm/record/get-period-plans', {
        params: params
    })
    return res
}
// 获取保险数据·
export const getPeriodPremiumCount = async (params: any) => {
    let res = await request.get('/crm/record/get-period-premium-count', {
        params: params
    })
    return res
}
// 获取其他数据
export const getOtherData = async (params: any) => {
    let res = await request.get('/crm/record/get-period-seven-days', {
        params: params
    })
    return res
}
// 近七日加减保趋势
export const getSevenDaysData = async (params: any) => {
    let res = await request.get('/crm/record/get-period-sign-seven-days', {
        params: params
    })
    return res
}
// 风险类别统计按金额
export const getSevenDaysOtherData = async (params: any) => {
    let res = await request.get('/crm/record/get-period-seven-data', {
        params: params
    })
    return res
}
// 风险类别统计按人数
export const getDataByNumber = async (params: any) => {
    let res = await request.get('/crm/record/get-risk-category-count-by-number', {
        params: params
    })
    return res
}
// 风险类别统计按金额
export const getDataByMoney = async (params: any) => {
    let res = await request.get('/crm/record/get-risk-category-count-by-money', {
        params: params
    })
    return res
}
// 获取加减保信息
export const getAddSubtractRecord = async (params: any) => {
    let res = await request.get('/crm/record/get-period-add-and-subtract-record', {
        params: params
    })
    return res
}
// 获取账户明细
export const getBalanceRecord = async (params: any) => {
    let res = await request.get('/crm/record/get-wesure_account_balance_record', {
        params: params
    })
    return res
}

// 日日保 保险数据
export const getWesureOperationData = async (params: any) => {
    let res = await request.get('/crm/record/get-wesure-operation-data', {
        params: params
    })
    return res
}
// 日日保 保司
export const getInsuranceCompanyListDay = async (params: any) => {
    console.log('[ params ] >', params)
    let res = await request.get('/crm/record/insure-company', {
        params: params,
        noCancel: true
    })
    return res
}
// 日日保 方案
export const getInsurancePlanListDay = async (params: any) => {
    let res = await request.get('/crm/record/get-wesure-programme', {
        params: params
    })
    return res
}
// 日日保 方案统计
export const getWesureProgramme = async (params: any) => {
    let res = await request.get('/crm/record/get-company-wesure-programme', {
        params: params
    })
    return res
}
// 团意保 方案
export const getInsurancePlanListGroup = async (params: any) => {
    let res = await request.get('/crm/record/get-tyx-programme', {
        params: params
    })
    return res
}
// 团意保 保险数据
export const getWesureOperationDataGroup = async (params: any) => {
    let res = await request.get('/crm/record/get-tyx-operation-data', {
        params: params
    })
    return res
}
// 团意保 方案统计
export const getGroupProgramme = async (params: any) => {
    let res = await request.get('/crm/record/get-company-tyx-programme', {
        params: params
    })
    return res
}
// 电子签 运营数据
export const getEleSignOperateData = async (params: any) => {
    let res = await request.get('/crm/record/get-ele-sign-operate-data', {
        params: params
    })
    return res
}
// 电子签 近七日签署趋势
export const getEleSignNearlySeven = async (params: any) => {
    let res = await request.get('/crm/record/get-ele-sign-nearly-seven', {
        params: params
    })
    return res
}

// 电子签 充值记录
export const getEleSignRechargeRecord = async (params: any) => {
    let res = await request.get('/crm/record/get-ele-sign-recharge-record', {
        params: params
    })
    return res
}
